package com.yc.service;

import lombok.extern.java.Log;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@Log
public class AsyncLogService {

    @Async("logExecutor") // 指定使用上面配置的线程池
    public void logIdGeneration(String id) {
        log.info("调用生成的id为:" + id);
    }
}